React by Stoyan Stefanov

React by Stoyan Stefanov

Author:Stoyan Stefanov
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-07-28T00:00:00+00:00


Discover

Let’s call the component discovery tool discovery.html and place in the root:

$ cp index.html discovery.html

It doesn’t need to load the whole app, so instead of using app.js, we’ll use a discover.js, which contains all the component examples. It follows that you also don’t include the app’s bundle.js, but a separate bundle that you can call discover-bundle.js:

<!DOCTYPE html> <html> <!-- same as index.html --> <body> <div id="pad"></div> <script src="discover-bundle.js"></script> </body> </html>

Building the new bundle as-you-go is trivial too—just add one more line to the build.sh script:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.